package org.lds.message.center.admin.business.template.converter;

import org.lds.message.center.admin.business.template.entity.Template;
import org.lds.message.center.admin.business.template.model.request.TemplateBaseDeleteRequest;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class TemplateBaseDeleteRequestToEntityConverter implements Converter<TemplateBaseDeleteRequest, Template> {

    @Override
    public Template convert(TemplateBaseDeleteRequest source) {
        return Template.builder()
                .id(source.getId())
                .build();
    }

}


